const App = getApp();

Component({

    options: {
        addGlobalClass: true
    },

    properties: {
        pageName: String,
        showNav: {
            type: Boolean,
            value: true
        },
        showHome: {
            type: Boolean,
            value: true
        }
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    lifetimes: {
        attached: function() {
            this.setData({
                navHeight: App.globalData.navHeight,
                navTop: App.globalData.navTop,
                ztlHeight: App.globalData.statusBarHeight
            })

        }
    },

    /**
     * 组件的方法列表
     */
    methods: {
        navBack: function() {
            console.log('navBack');
            wx.navigateBack()

        },
        toIndex: function() {
            console.log('toIndex');
            // wx.reLaunch({
            //     url: '/pages/base64/index'
            // })
            wx.navigateTo({
                url: '/pages/base64/index'
            })
        }
    }
})